package com.jeff.tianti.cms.service;

import com.jeff.tianti.cms.entity.Association;
import com.jeff.tianti.cms.dao.AssociationDao;
import com.jeff.tianti.cms.dto.AssociationQueryDTO;
import com.jeff.tianti.common.service.CommonService;
import com.jeff.tianti.common.entity.PageModel;
import org.springframework.stereotype.Service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
/**
 * @author NOW_GO
 * @desc AssociationService类 
 * @date 2019-07-12
 */
@Service
public class AssociationService extends CommonService< Association,String >  {

    @Autowired
    private AssociationDao associationDao;

    @Autowired
    public void setAssociationDao(AssociationDao associationDao){
      super.setCommonDao(associationDao);
    }

    public PageModel<Association> queryAssociationPage(AssociationQueryDTO associationQueryDTO){
           return this.associationDao.queryAssociationPage(associationQueryDTO);
    }

    public List<Association> queryAssociationList(AssociationQueryDTO associationQueryDTO){
           return this.associationDao.queryAssociationList(associationQueryDTO);
    }


}